<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:46:"D:\WWW\twothink\/addons/systeminfo\widget.html";i:1479181705;}*/ ?>
<div class="span<?php echo $addons_config['width']; ?>">
	<div class="columns-mod">
		<div class="hd cf">
			<h5><?php echo $addons_config['title']; ?></h5>
			<div class="title-opt">
			</div>
		</div>
		<div class="bd">
			<div class="sys-info">
				<table>
					<tr>
						<th>TwoThink版本</th>
						<td><?php echo TWOTHINK_VERSION; ?>&nbsp;&nbsp;&nbsp;
							<?php if(!(empty($addons_config['new_version']) || ($addons_config['new_version'] instanceof \think\Collection && $addons_config['new_version']->isEmpty()))): ?>
								<!-- <a href="http://www.twothink.cn" target="_blank">
									发现新版本[<?php echo $addons_config['new_version']; ?>]
								</a>&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="<?php echo url('/update/index'); ?>" target="_blank">
                                    在线更新
                                </a>-->
							<?php endif; ?>
						</td>
					</tr>
					<tr>
						<th>服务器操作系统</th>
						<td><?php echo PHP_OS; ?></td>
					</tr>
					<tr>
						<th>ThinkPHP版本</th>
						<td><?php echo THINK_VERSION; ?></td>
					</tr>
					<tr>
						<th>运行环境</th>
						<td><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
					</tr>
					<tr>
						<th>MYSQL版本</th>
						<?php 
							$system_info_mysql = db()->query("select version() as v;");
						 ?>
						<td><?php echo $system_info_mysql['0']['v']; ?></td>
					</tr>
					<tr>
						<th>上传限制</th>
						<td><?php echo ini_get('upload_max_filesize'); ?></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>